package com.example.payment.repository;

import com.example.payment.entity.PaymentRecord;
import com.example.payment.enums.PaymentStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface PaymentRecordRepository extends JpaRepository<PaymentRecord, Long> {
    
    List<PaymentRecord> findByOrderNo(String orderNo);
    
    List<PaymentRecord> findByOrderNoOrderByCreatedAtDesc(String orderNo);
    
    List<PaymentRecord> findByStatus(PaymentStatus status);
} 